package com.maxlen.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.ware.entity.WareOrderTaskDetailEntity;
import com.maxlen.ware.entity.WareSkuEntity;
import com.maxlen.ware.entity.to.SkuHasStockTO;
import com.maxlen.ware.entity.to.WareSkuLockTO;
import com.maxlen.ware.entity.vo.WareSkuPageParamsVO;

import java.util.List;

/**
 * 商品库存
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 11:02:35
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(WareSkuPageParamsVO params);

    List<SkuHasStockTO> getSkuHasStock(List<Long> skuIdList);

    void lockStock(WareSkuLockTO wareSkuLockTO);

    void isUnlockStock(Long wareOrderTaskDetailId);

    void isUnlockStock(String orderSn);
}

